package com.androidlibrary.myapplication;

import android.os.Bundle;
import android.os.Handler;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.luck.picture.lib.permissions.RxPermissions;

import org.wcy.android.ui.BaseActivity;
import org.wcy.android.utils.RxFragmentUtil;
import org.wcy.android.utils.RxPermissionsTool;

import io.reactivex.functions.Consumer;

public class TestActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
       // loadRootFragment(R.id.id_content, new LoginFragment());
//        FragmentManager fm = getSupportFragmentManager();
//        FragmentTransaction ft = fm.beginTransaction();
//        //选择fragment替换的部分
//        ft.replace(R.id.id_content,  new LoginFragment());
//        ft.commit();
        RxFragmentUtil.startFragment(getThisContext(),LoginFragment.class);
    }
}
